<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/example_back"
    android:clickable="true"
    android:focusable="true"
    tools:context=".ui.task.TaskFragment">

    <com.google.android.material.card.MaterialCardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/MCardMargin_16dp"
        android:layout_marginTop="@dimen/MCardMargin_16dp"
        android:layout_marginEnd="@dimen/MCardMargin_16dp"
        android:background="@color/white"
        app:cardBackgroundColor="@color/white"
        app:cardCornerRadius="@dimen/MCard_Radius_15dp"
        app:cardElevation="@dimen/MCard_Elevation_10dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:strokeColor="@color/example"
        app:strokeWidth="@dimen/MCard_Stroke_1dp">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <TextView
                android:id="@+id/records_text_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/MCardMargin_16dp"
                android:layout_marginTop="@dimen/MCardMargin_32dp"
                android:layout_marginEnd="@dimen/MCardMargin_16dp"
                android:gravity="center"
                android:hint="@string/progress_counter"
                android:textColor="@color/example_dark"
                android:textSize="@dimen/MCard_Text_24sp"
                android:textStyle="bold"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <ProgressBar
                android:id="@+id/progress_bar"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginTop="@dimen/MCardMargin_24dp"
                app:layout_constraintEnd_toEndOf="@+id/records_text_view"
                app:layout_constraintStart_toStartOf="@+id/records_text_view"
                app:layout_constraintTop_toBottomOf="@+id/records_text_view" />

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/learning_image_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/MCardMargin_16dp"
                android:layout_marginTop="@dimen/MCardMargin_24dp"
                android:layout_marginEnd="@dimen/MCardMargin_16dp"
                android:adjustViewBounds="true"
                android:maxHeight="@dimen/restriction_image"
                android:scaleType="centerCrop"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/progress_bar" />

            <TextView
                android:id="@+id/name_english_text_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/MCardMargin_24dp"
                android:text="@string/name_english"
                android:textColor="@color/example_middle"
                android:textSize="@dimen/MCard_Text_28sp"
                android:textStyle="bold"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/learning_image_view" />

            <TextView
                android:id="@+id/name_translation_text_view"

                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/MCardMargin_16dp"
                android:layout_marginTop="@dimen/MCardMargin_16dp"
                android:layout_marginEnd="@dimen/MCardMargin_16dp"
                android:text="@string/name_translation"
                android:textColor="@color/example"
                android:textSize="@dimen/MCard_Text_26sp"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/name_english_text_view" />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/back_card_button"
                style="@style/Widget.Material3.Button.OutlinedButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/MCardMargin_32dp"
                android:layout_marginTop="@dimen/MCardMargin_32dp"
                android:layout_marginBottom="@dimen/MCardMargin_32dp"
                android:contentDescription="@string/back_card"
                android:text="@string/back_card"
                android:textColor="@color/example_dark"
                android:textSize="@dimen/default_text"
                android:visibility="invisible"
                app:backgroundTint="@color/white"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/name_translation_text_view"
                app:strokeColor="@color/example" />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/forward_card_button"
                style="@style/Widget.Material3.Button.OutlinedButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/MCardMargin_32dp"
                android:layout_marginEnd="@dimen/MCardMargin_32dp"
                android:layout_marginBottom="@dimen/MCardMargin_32dp"
                android:contentDescription="@string/forward_card"
                android:text="@string/forward_card"
                android:textColor="@color/example_dark"
                android:textSize="@dimen/default_text"
                app:backgroundTint="@color/white"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/name_translation_text_view"
                app:strokeColor="@color/example"
                app:strokeWidth="@dimen/MCard_Stroke_1dp" />

        </androidx.constraintlayout.widget.ConstraintLayout>
    </com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>